package top.szhome.system.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import top.szhome.framework.starter.db.support.BaseEntity;

/**
 * 角色菜单实体对象
 *
 * @author 唐加利
 * @date 2023/07/31
 **/
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
@TableName("t_role_menu")
public class RoleMenu extends BaseEntity {

    /**
     * 序列号
     */
    private static final long serialVersionUID = 1L;

    public RoleMenu(Long roleId, Long menuId) {
        this.roleId = roleId;
        this.menuId = menuId;
    }

    /**
     * 角色
     */
    private Long roleId;

    /**
     * 菜单
     */
    private Long menuId;

}
